package com.wiim.nhapnhap;

import java.io.Serializable;
import android.app.Application;
import android.content.Context;

import com.google.android.gms.maps.model.LatLng;
import com.nostra13.universalimageloader.cache.disc.naming.Md5FileNameGenerator;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
import com.nostra13.universalimageloader.core.assist.QueueProcessingType;

public class EgoodApp extends Application implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static Boolean bIsLogXML = true;
	public boolean bTabletVersionMid = false;
	public int Language_code = 1;
	public int id_applicationtype = 6;
	public Boolean isLogin = false;
	public Boolean clearCase = false;
	public boolean isHavePush = false;
	public  boolean isShowed = false;
	public String currentTab;
	public LatLng latlongDefault;
	public String addressDefault;
	// RESTFULL RETURN KEY
	public static final String REST_OBJECT_PUT = "AltObjectPut";
	public static final String REST_OBJECT_RETURN = "AltObjectReturn";

	public static void initImageLoader(Context context, ImageLoader imageLoader) {
		// This configuration tuning is custom. You can tune every option, you
		// may tune some of them,
		// or you can create default configuration by
		// ImageLoaderConfiguration.createDefault(this);
		// method.
		ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context).threadPriority(Thread.NORM_PRIORITY - 2).denyCacheImageMultipleSizesInMemory()
				.discCacheFileNameGenerator(new Md5FileNameGenerator()).tasksProcessingOrder(QueueProcessingType.LIFO).enableLogging().build();
		// Initialize ImageLoader with configuration.
		imageLoader.init(config);
	}
	public void setAddressDefault(String addressDefault) {
		this.addressDefault = addressDefault;
	}

	public String getAddressDefault() {
		return addressDefault;
	}
	public void setLatlongDefault(LatLng latlongDefault) {
		this.latlongDefault = latlongDefault;
	}

	public LatLng getLatlongDefault() {
		return latlongDefault;
	}

	
}
